﻿@model AdventureWorks.Entities.Product

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Product</legend>

    <div class="display-label">Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Product Number</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductNumber)
    </div>

    <div class="display-label">Color</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Color)
    </div>

    <div class="display-label">Standard Cost</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StandardCost)
    </div>

    <div class="display-label">List Price</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ListPrice)
    </div>

    <div class="display-label">Size</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Size)
    </div>

    <div class="display-label">Weight</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Weight)
    </div>

    <div class="display-label">Category</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductCategory.Name)
    </div>

    <div class="display-label">Model</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductModel.Name)
    </div>

    <div class="display-label">Sell Start Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SellStartDate)
    </div>

    <div class="display-label">Sell End Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SellEndDate)
    </div>

    <div class="display-label">Discontinued Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DiscontinuedDate)
    </div>

    <div class="display-label">ThumbnailPhoto</div>
    <div class="display-field">
		<img alt="@Model.ThumbnailPhotoFileName" src="@Url.Action("Image", new { id = @Model.ID })" />
    </div>

    <div class="display-label">Modified Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedDate)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new 
	{ 
		id=Model.ID,
		ddlProductCategoryID = ViewBag.productCategoryID,
		ddlProductModelID = ViewBag.productModelID
	}) |

	@Html.ActionLink("Back to List", "Index", new
	{
		ddlProductCategoryID = ViewBag.productCategoryID,
		ddlProductModelID = ViewBag.productModelID
	})
</p>
